package common.Tables;

import java.io.Serializable;

/**
 * class Users.
 * represents the Users table
 * @author michal
 *
 */
public class Users implements Serializable,Table{	
	private static final long serialVersionUID = 1L;
	private String id;	//id (username)
	private String firstName;	//name
	private String password;	//password
	private String permission;	//permission kind
	
	/**
	 * c-tor
	 * @param firstName
	 * @param lastName
	 * @param password
	 * @param perm
	 */
	public Users(String id,String firstName, String password,String perm){
		this.id=id;
		this.firstName=firstName;
		
		this.password=password;
		this.permission = perm;
	}
	/**
	 * default c-tor
	 */
	public Users(){}
	/*
	 * getters & setters
	 */
	public String  getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPermission() {
		return permission;
	}
	public void setPermission(String authorization) {
		this.permission = authorization;
	}
	public String toString(){
		return "ID: "+id+" firstName: "+firstName+" permission: "+permission;
	}
}

